﻿using System.Collections.Generic;
using MicropleSoft.WmsServiceLibrary.Data;
using MicropleSoft.WmsServiceLibrary.Domain;

namespace MicropleSoft.WmsServiceLibrary.BusinessInterfaces
{
    /// <summary>
    /// 构建表，加字段，修改字段，删除字段，然后执行。
    /// </summary>
    [ImplementByUnity("ITableSchemaModifier")]
    public interface ITableSchemaModifier
    {
        string ExcuteCreateTable(IItemClass itemClass, List<IItemTemplate> itemTemplates);
        string ExcuteAddColumn(IItemTemplate itemTemplate);
        string ExcuteAlterColumn(IItemTemplate itemTemplate);
        string ExcuteDropColumn(IItemTemplate itemTemplate);

        void SaveItemClassAndItemTemplates(ItemClass itemClass, List<ItemTemplate> itemTemplates);
    }
}
